/*
 * @Author: your name
 * @Date: 2020-12-28 10:57:05
 * @LastEditTime: 2020-12-31 11:30:46
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \H5 2010 studyd:\H5 2010 练习\第三阶段 Vue + node\DAY 7\panda\src\store\index.js
 */
import Vue from 'vue'
import Vuex from 'vuex'
import cartModule from './modules/cart'
import { cartPlugin } from './plugins/cart'
import userModule from './modules/user'
import { userPlugin } from './plugins/user'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: { // 模块注册
    cart: cartModule,
    user: userModule
  },
  plugins: [
    cartPlugin,
    userPlugin
  ]
})
